package com.xframework.security.model;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.xframework.annotation.MappingColumn;
import com.xframework.annotation.MappingTable;
import com.xframework.model.BaseModel;

/**
 * 登录日志表.
 *
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@MappingTable(tableName = "SECURITY_ACCOUNT_LOG")
public class AccountLog extends BaseModel {
	/**
	 * ID.
	 */
	@MappingColumn(columnName = "ACCOUNT_ID")
	private String accountId;
	/**
	 * 用户名.
	 */
	@MappingColumn(columnName = "ACCOUNT_NAME")
	private String accountName;
	/**
	 * 登录ip.
	 */
	@MappingColumn(columnName = "ACCOUNT_IP")
	private String accountIp;
	/**
	 * 登录时间.
	 */
	@MappingColumn(columnName = "ACCOUNT_LOGIN_TIME")
	private String accountLoginTime;

	public AccountLog() {
	}

	/**
	 * 获取ID.
	 * 
	 * @return
	 */
	public String getAccountId() {
		return accountId;
	}

	/**
	 * 获取登录ip.
	 * 
	 * @return
	 */
	public String getAccountIp() {
		return accountIp;
	}

	/**
	 * 获取用户名.
	 * 
	 * @return 用户名
	 */
	public String getAccountName() {
		return accountName;
	}

	/**
	 * 获取登录时间.
	 * 
	 * @return 登录时间
	 */
	public String getAccountLoginTime() {
		return accountLoginTime;
	}

	/**
	 * 设置ID.
	 * 
	 * @param accountId
	 *            ID
	 */
	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	/**
	 * 设置登录ip.
	 * 
	 * @param accountIp
	 */
	public void setAccountIp(String accountIp) {
		this.accountIp = accountIp;
	}

	/**
	 * 设置用户名.
	 * 
	 * @param accountName
	 *            用户名
	 */
	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	/**
	 * 设置登录时间.
	 * 
	 * @param accountLoginTime
	 *            登录时间
	 */
	public void setAccountLoginTime(String accountLoginTime) {
		this.accountLoginTime = accountLoginTime;
	}
}
